package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 私信/聊天
 */
@Setter
@Getter
public class Message extends BaseDomain{
    //发送人
    private User sender;
    //接收人
    private User recipient;
    //消息
    private String message;
    //消息创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date currentTime;
    //消息状态
    private Boolean state = false;//默认为未读

}